﻿@using System.Web.Mvc
@using System.Web.Mvc.Ajax
@using System.Web.Mvc.Html
@using SharepointPlugin.Models;
@inherits System.Web.Mvc.WebViewPage<List<Article>>
@functions{
    string getArticleUrl(Article a)
    {
        return string.Format(ViewBag.ArticleUrlTemplate, a.Id);
    }         
}
<ul>
@foreach(var a in Model)
{
    <li><a href="@Html.Raw(getArticleUrl(a))" data-art-id="@a.Id">@a.Title</a></li>
}
</ul>